#include<stdio.h>
#include"Process.h"
#include<unistd.h>


//down load 
//
void download()
{
	double filesize=100*1024*1024*1.0;
	double current=0.0;
	double bandwidth =1024*1024*1.0;

	while(current<=filesize)
	{
		ProcBar(filesize,current);
		current+=bandwidth;
		sleep(1);
	}

	printf("download done,filesize:lf\n",filesize);
}

int main()
{
	//ForTest();
	ProcBar();
	return 0;
}

